from flask import request
from app import app, socket

@app.route('/')
def index():
    return 'hello,world!'

from src import gobang
@socket.route('/gobang')
def gobangSocket(ws):
    userAgent = request.headers.get('User-Agent')
    gobang.Listen(ws,userAgent)

